package com.jbm.core.server.remote;

import com.jbm.core.common.AutoCall;
import com.jbm.core.common.Life;
import com.jbm.core.common.MainServer;
import com.jbm.core.iface.IAcross;
import com.jbm.core.iface.IRegister;
import com.jbm.onehome.iface.IAcc;

import java.net.InetSocketAddress;

/**
 * Created by root on 17-3-6.
 */
public class RIRegister extends IRegister
{
	public RIRegister()
	{
	}

	public RIRegister(IAcross ia)
	{
		super(ia);
	}

	public IAcross Register()
	{
		IRegister reg = (IRegister)m_input;

		m_ca.getM_iaccount().getM_account_id();

		m_ca.getM_iosessionShell(MainServer.Server_type_Server).getRemoteIP();
		m_ca.getM_iosessionShell(MainServer.Server_type_Server).getRemotePort();

		AutoCall.g_autocall.UpdatePoint(m_ca,reg.m_login_id,reg.m_fromtag);

		m_ca.SetStatus(Life.life_status_authorized);
		m_ca.getM_iaccount().setM_member_id(33);
		m_ca.getM_iaccount().setM_seller_id(33);

		return new IAcc(reg.m_login_id);
	}
}
